import request from './request.js'
//注册
export const merchantRego=(params)=>{
	return request({
		url: "/api/login/merchantRego",
		method: "post",
		data: params,
	})
}
//登录
export const merchantLogin=(params)=>{
	return request({
		url: "/api/login/merchantLogin",
		method: "post",
		data: params,
	})
}
//获取商铺信息
export const getMerchant=(params)=>{
	return request({
		url: "/api/login/getMerchant",
		method: "post",
		data: params,
	})
}
//修改营业状态
export const openSwitch=(params)=>{
	return request({
		url: "/api/shop/openSwitch",
		method: "post",
		data: params,
	})
}
//修改营业时间
export const openTime=(params)=>{
	return request({
		url: "/api/shop/openTime",
		method: "post",
		data: params,
	})
}
//添加商品
export const addGoods=(params)=>{
	return request({
		url: "/api/shop/addGoods",
		method: "post",
		data: params,
	})
}
//查看商品
export const listGoods=(params)=>{
	return request({
		url: "/api/shop/listGoods",
		method: "post",
		data: params,
	})
}
//删除商品
export const delGoods=(params)=>{
	return request({
		url: "/api/shop/delGoods",
		method: "post",
		data: params,
	})
}
//修改商品
export const updateGoods=(params)=>{
	return request({
		url: "/api/shop/updateGoods",
		method: "post",
		data: params,
	})
}
//获取平台洗车类型
export const getMerchantCard=(params)=>{
	return request({
		url: "/api/shop/getMerchantCard",
		method: "post",
		data: params,
	})
}
//获取商家端配置
export const merchantConfig=(params)=>{
	return request({
		url: "/api/index/merchantConfig",
		method: "post",
		data: params,
	})
}
//新增岗位
export const addPost=(params)=>{
	return request({
		url: "/api/shop/addPost",
		method: "post",
		data: params,
	})
}
export const updatePost=(params)=>{
	return request({
		url: "/api/shop/updatePost",
		method: "post",
		data: params,
	})
}
export const listPost=(params)=>{
	return request({
		url: "/api/shop/listPost",
		method: "post",
		data: params,
	})
}
export const delPost=(params)=>{
	return request({
		url: "/api/shop/delPost",
		method: "post",
		data: params,
	})
}
export const addUser=(params)=>{
	return request({
		url: "/api/shop/addUser",
		method: "post",
		data: params,
	})
}
//员工列表
export const listUser=(params)=>{
	return request({
		url: "/api/shop/listUser",
		method: "post",
		data: params,
	})
}
//删除员工
export const delUser=(params)=>{
	return request({
		url: "/api/shop/delUser",
		method: "post",
		data: params,
	})
}
//查看员工资料
export const seeUser=(params)=>{
	return request({
		url: "/api/shop/seeUser",
		method: "post",
		data: params,
	})
}
export const updateUser=(params)=>{
	return request({
		url: "/api/shop/updateUser",
		method: "post",
		data: params,
	})
}
export const shelvesGoods=(params)=>{
	return request({
		url: "/api/shop/shelvesGoods",
		method: "post",
		data: params,
	})
}
export const statusUser=(params)=>{
	return request({
		url: "/api/shop/statusUser",
		method: "post",
		data: params,
	})
}
export const resetpwd=(params)=>{
	return request({
		url: "/api/login/resetpwd",
		method: "post",
		data: params,
	})
}
export const merchantUpdate=(params)=>{
	return request({
		url: "/api/shop/merchantUpdate",
		method: "post",
		data: params,
	})
}
//核销
export const writeOff=(params)=>{
	return request({
		url: "/api/shop/writeOff",
		method: "post",
		data: params,
	})
}
//核销普通商品
export const writeOffGoods=(params)=>{
	return request({
		url: "/api/shop/writeOffGoods",
		method: "post",
		data: params,
	})
}

export const washlogList=(params)=>{
	return request({
		url: "/api/shop/washlogList",
		method: "post",
		data: params,
	})
}
export const orderList=(params)=>{
	return request({
		url: "/api/shop/orderList",
		method: "post",
		data: params,
	})
}
export const census=(params)=>{
	return request({
		url: "/api/shop/census",
		method: "post",
		data: params,
	})
}
//获取可核销写车类型
export const getCardType=(params)=>{
	return request({
		url: "/api/shop/getCardType",
		method: "post",
		data: params,
	})
}
//获取配置
export const getConfig=(params)=>{
	return request({
		url: "/api/index/getConfig",
		method: "post",
		data: params,
	})
}
//提现
export const initiate=(params)=>{
	return request({
		url: "/api/withdrawal/initiate",
		method: "post",
		data: params,
	})
}
export const withdrawalList=(params)=>{
	return request({
		url: "/api/withdrawal/list",
		method: "post",
		data: params,
	})
}
export const logout=(params)=>{
	return request({
		url: "/api/login/logout",
		method: "post",
		data: params,
	})
}
export const getMoney=(params)=>{
	return request({
		url: "/api/withdrawal/getMoney",
		method: "post",
		data: params,
	})
}

export const orderChart=(params)=>{
	return request({
		url: "/api/shop/orderChart",
		method: "post",
		data: params,
	})
}
export const getPromotionCode=(params)=>{
	return request({
		url: "/api/shop/getPromotionCode",
		method: "post",
		data: params,
	})
}
export const sendCode=(params)=>{
	return request({
		url: "/api/login/send",
		method: "post",
		data: params,
	})
}
export const resetPassword=(params)=>{
	return request({
		url: "/api/login/resetPassword",
		method: "post",
		data: params,
	})
}
export const writeList=(params)=>{
	return request({
		url: "/api/shop/writeList",
		method: "post",
		data: params,
	})
}
export const getFlyList=(params)=>{
	return request({
		url: "/api/flyshop/getFlyList",
		method: "post",
		data: params,
	})
}
export const setFlyPrice=(params)=>{
	return request({
		url: "/api/flyshop/setFlyPrice",
		method: "post",
		data: params,
	})
}
export const getUnread=(params)=>{
	return request({
		url: "/api/message/getUnread",
		method: "post",
		data: params,
	})
}
//消息列表
export const messageList=(params)=>{
	return request({
		url: "/api/message/list",
		method: "post",
		data: params,
	})
}
export const details=(params)=>{
	return request({
		url: "/api/message/details",
		method: "post",
		data: params,
	})
}
//绑定openid
export const getOpenid=(params)=>{
	return request({
		url: "/api/login/getOpenid",
		method: "post",
		data: params,
	})
}
